import request from '@/utils/request'

// 查询加工发货函列表
export function listLetter(query) {
  return request({
    url: '/system/letter/list',
    method: 'get',
    params: query
  })
}

// 查询加工发货函详细
export function getLetter(keyId) {
  return request({
    url: '/system/letter/' + keyId,
    method: 'get'
  })
}

// 新增加工发货函
export function addLetter(data) {
  return request({
    url: '/system/letter',
    method: 'post',
    data: data
  })
}

// 修改加工发货函
export function updateLetter(data) {
  return request({
    url: '/system/letter',
    method: 'put',
    data: data
  })
}

// 删除加工发货函
export function delLetter(keyId) {
  return request({
    url: '/system/letter/' + keyId,
    method: 'delete'
  })
}
